<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"><help:productname>%PRODUCTNAME</help:productname> uses an XML file format as the default for saving and opening its documents.</help:help-text></p>
<p class="Head2">XML file format names</p>
<p class="Paragraph">If in the dialogs for saving and opening <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> documents you do not select any other file type, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> uses the following XML formats:</p>
<p class="Paragraph">These file name extensions on the one hand allow better differentiation if you are searching though a lot of files of different file types in a directory. And on the other, from the name, it is clear that compressed XML files are involved that must first be unpacked before being read, for example, by a text editor.</p>
<p class="Paragraph"><help:key-word value="file formats; changing defaults" tag="kw68543_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="default formats; changing" tag="kw68543_2" xmlns:help="http://openoffice.org/2000/help"/>If you want to work permanently with another file format, you can define that format as the default. Choose <help:link Id="66264" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Tools - Options - Load/Save - General</span></help:link> to find alternative file formats that can be selected for each <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> document type.</p>
</span></th></tr></table>
<p class="Head2">XML file structure</p>
<p class="Paragraph">The <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> XML file formats are compressed according to the ZIP method. Use an unpacking program of your choice to unpack the content of an XML file with your subdirectories. <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>You see a structure similar to the following illustration.</p>
<p class="P2">The text content of the document is located in <span class="T1">content.xml</span>. You can view this file with, for example, a pure text editor.</p>
<p class="P2">By default content.xml without indents is stored at the start of the line in order to minimize the time for saving and opening. By choosing <span class="T1">Tools - Options - Load/Save - General</span> you can change this procedure so that the lines are saved with a structured indent.</p>
</li>
<li class="">
<p class="P2"><span class="T1">meta.xml</span> contains, inter alia, the meta information on the document, which you can enter under<span class="T1">File - Properties</span>.</p>
<p class="P2">If you save a document with security, only meta.xml is not secured.</p>
</li>
<li class="">
<p class="P2"><span class="T1">settings.xml</span> contains further information on settings for this document, for example on the printer, on the recording of changes, the associated data sources and so on.</p>
</li>
<li class="">
<p class="P2">In <span class="T1">styles.xml</span> you find the Styles defined for the document that can, for example, be seen in the Stylist.</p>
</li>
<li class="">
<p class="P2">The <span class="T1">meta-inf/manifest.xml</span> file describes the structure of the XML file.</p>
</li>
</ul>
<p class="Paragraph">Additional files can be contained in the packed file format. Illustrations are, for example, contained in a <span class="T1">Pictures</span> subdirectory, Basic code in a <span class="T1">Basic</span> subdirectory and linked Basic libraries are found in further subdirectories of <span class="T1">Basic</span>.</p>
<p class="Head2">Definition of the XML formats</p>
<p class="Paragraph">The DTD (Document Type Description) files can be found in <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">{installpath}/share/dtd</help:case><help:default>{installpath}\share\dtd</help:default></help:switch>.</p>
<p class="Paragraph">Note that the formats are subject to certain licenses. You can find notes on the licenses at the start of the DTD files. More detailed information can be found on the <a href="http://www.openoffice.org" class="ContentLink">OpenOffice.org</a> website.</p>